package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.AbilityMapper;
import com.zch.dao.model.Ability;
import com.zch.dao.model.AbilityExample;
import com.zch.daoEx.AbilityMapperEx;

@Service
public class AbilityService {
	@Autowired
	private AbilityMapper abilityMapper;
	@Autowired
    private AbilityMapperEx abilityMapperEx;

	public int countByExample(AbilityExample example) {
		return this.abilityMapper.countByExample(example);
	}

	public Ability selectByPrimaryKey(String id) {
		return this.abilityMapper.selectByPrimaryKey(id);
	}

	public List<Ability> selectByExample(AbilityExample example) {
		return this.abilityMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.abilityMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Ability record) {
		return this.abilityMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Ability record) {
		return this.abilityMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(AbilityExample example) {
		return this.abilityMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Ability record, AbilityExample example) {
		return this.abilityMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(Ability record, AbilityExample example) {
		return this.abilityMapper.updateByExample(record, example);
	}

	public int insert(Ability record) {
		return this.abilityMapper.insert(record);
	}

	public int insertSelective(Ability record) {
		return this.abilityMapper.insertSelective(record);
	}

    public List<Ability> selectList(Map<String, Object> map) {
        return this.abilityMapperEx.selectList(map);
    }

}
